<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="__CSS__/bootstrap.min.css" />
<link rel="stylesheet" href="__CSS__/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="__CSS__/matrix-media.css" />
<link href="__FONT__/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="__CSS__/changyun.css" />
<style>
	.control-group .controls label{
		display:inline-block;
	}
	.cy_table tr td{height:40px;line-height:40px;}
</style>
</head>
<body style="background:#fff;">
<div style="padding:10px 0;">
<form action="__ACTION__" method="post" class="form-horizontal" id="form_basic_validate">
<table width="580" border="0" class="cy_table">
  <tr>
    <td width="100"><div align="right">用户组类型：</div></td>
    <td>
		<select name="group_id">
			<option value="0">==选择用户组==</option>
		<volist name="auth_group" id="vo">
			<option value="{#$vo.id}" <if condition="$vo.id eq $auth_group_access[group_id]">selected</if> >{#$vo.title}</option>
		</volist>
		</select>
	</td>
  </tr>
    <td>&nbsp;</td>
    <td>
		<input type="hidden" name="id" value="{#$Think.get.id|default=''}" />
		<button type="submit" class="btn btn-success">保存</button>
	</td>
  </tr>
</table>
</form>
</div>
<script src="__JS__/jquery.min.js"></script> 
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/matrix.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__PUBLIC__/js/Validform.min.js"></script>
<script type="text/javascript">
$(function(){
	var loadi = null;
	var demo1 = $("#form_basic_validate").Validform({
		tiptype:3,
		ajaxPost:true,
		postonce:true,
		tiptype: function (msg, o, cssctl) {
			if (!o.obj.is("form")) {
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		},
		beforeSubmit:function(curform){
			loadi = layer.load('表单正在处理中，请稍等 ...');
		},
		callback:function(data){
			layer.close(loadi);
			if(data.status == 1){
				layer.alert(data.msg,{icon:1},function(){
					parent.location.reload();
					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
					parent.layer.close(index); //再执行关闭

				});
			}else{
				layer.alert(data.msg,{icon:0});
			}
		}
	});

})
</script>
</body>
</html>
